﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ChequeManagement.BLL
{
    /// <summary>
    /// This Class Includes  Method, constructor
    /// </summary>
    /// <Method>this class includes some method for getall data</Method>
    /// <constructor>this class include a constructor that one not have overload</constructor>
    public class BLLChequeHistoryFactory
    {
        /// <summary>
        /// This constructor not have parameter and use on create instance of class
        /// </summary>
        public BLLChequeHistoryFactory()
        {
        }

        /// <summary>
        /// This method not have  parameter 
        /// </summary>
        /// <returns>this method select data and result return into DataTable</returns>
        public DataTable GetAllDT()
        {

            return new DataTable();
        }

        /// <summary>
        /// This method not have  parameter 
        /// </summary>
        /// <returns>object that type is BLLChequeHistory</returns>
        public BLLChequeHistory[] GetAll()
        {
            //sample
            return new BLLChequeHistory[5];
        }

        /// <summary>
        /// This method have a parameter
        /// </summary>
        /// <param name="fieldName" Type="string"></param>
        /// <returns>array of object that type is BLLChequeHistory</returns>
        public BLLChequeHistory[] GetByField(string fieldName)
        {
            //sample
            return new BLLChequeHistory[5];
        }

        /// <summary>
        /// This method have a parameters
        ///  the filedname parameter select field name on select table and result return into dt parameter 
        /// </summary>
        /// <param name="fieldName" Type="string"></param>
        /// <param name="dt" Type="DataTable"></param>
        /// <return>this type is void and Do not return but parameter is DataTable and result return into this DataTable</return>
        public void GetByField(string fieldName, DataTable dt)
        {

        }

        /// <summary>
        /// This method have a parameters
        /// select data by targetChequeHistoryID
        /// </summary>
        /// <param name="targetChequeHistoryID" Type="int"></param>
        /// <returns> object that type is BLLChequeHistory</returns>
        public BLLChequeHistory GetByKey(int targetChequeHistoryID)
        {
            return new BLLChequeHistory();
        }

        /// <summary>
        /// This method not have parameter
        /// </summary>
        ///  <return>this type is void and Do not return</return>
        public void RemoveAll()
        {
        }
    }
}
